import { BehaviorNode, TreeNode } from "./BehaviorNode";
import { CompositeNode } from "./CompositeNode";

/**
 * 装饰节点,修饰组合节点或者 执行节点
 */ 
export abstract class ADecorater<T  extends IGameEntity> extends TreeNode<T>
{
    protected _node!:BehaviorNode<T>;
    constructor( node:BehaviorNode<T>)
    {
        super();
        this._node = node;
    }
    abstract canExecute(data:T):boolean
}